/*
 * File:   lcd.c
 * Author: Usuario
 *
 * Created on 16 de agosto de 2014, 07:28 PM
 */


#include <xlcd.h>
#include <p18f4550.h>
#include <delays.h>

void delaytc(){ Delay10TCYx(1);}
void delaylcd() {Delay10TCYx(1);}
void Xlcd() {Delay10TCYx(5);}
void main(void) {
    int a,b,c=0;
    TRISB=0;

    OpenXLCD( FOUR_BIT & LINES_5X7 );
    while(1){
   WriteCmdXLCD(1);
   SetDDRamAddr(0x05);
    putrsXLCD("Mecaumng");
    Delay10KTCYx(100);
    SetDDRamAddr(0x42);
       putrsXLCD("david");

    }
}
